package org.finesys.common.hazelcast.core.support;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Collections;
import java.util.List;

@Data
@ConfigurationProperties(prefix = "fine.hazelcast")
public class HazelcastProperties {


    public static final String SERVER = "fine.hazelcast.server.enable";
    /**
     * Hazelcast实例名称
     */
    private String instanceName = "hazelcast-instance";

    /**
     * Hazelcast集群名称
     */
    private String clusterName = "hazelcast-cluster";

    /**
     * Hazelcast实例端口
     */
    private List<Integer> port = Collections.singletonList(5701);

    /**
     * Hazelcast实例ip
     */
    private List<String> members = Collections.singletonList("127.0.0.1");
    /**
     * 线程池参数
     */
    private int corePoolSize = 15;
    private int maximumPoolSize = Integer.MAX_VALUE;
    private long keepAliveTime = 60;

    private int capacity;
}
